-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Setup VRT #3894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup VRT #3894
Conversation
|
|
||
| env: | ||
| AUTHOR_NAME: 'github-actions[bot]' | ||
| AUTHOR_EMAIL: '41898282+github-actions[bot]@users.noreply.github.com' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copied some of the instructions from https://vitest.dev/guide/browser/visual-regression-testing.html#the-update-workflow
| /> | ||
| ); | ||
|
|
||
| await expect(getGrid()).toMatchScreenshot('basic-grid'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can tweak the match options if needed
https://vitest.dev/guide/browser/visual-regression-testing.html#global-configuration
Co-authored-by: amanmahajan7
Co-authored-by: amanmahajan7
Co-authored-by: Nicolas Stepien <[email protected]>
This reverts commit 6928269.
Co-authored-by: amanmahajan7
This reverts commit fbc541e.
* Initial commit * Fix typo * Fix typo * Move visual folder inside test folder * Use version instead of SHA * eslint fixes * Fix path * Ignore __screenshots__ in the browser folder * Update screenshots Co-authored-by: amanmahajan7 * Update node version * Delete screenshots * Update screenshots Co-authored-by: amanmahajan7 * Try `workflow_dispatch` * delete screenshots * Add `workflow_dispatch:` * Update screenshots Co-authored-by: amanmahajan7 * Remove `workflow_dispatch:` * try to trigger ci workflow * add test * Update screenshots Co-authored-by: nstepien * add permission * Update screenshots Co-authored-by: nstepien * ci: add workflow_dispatch trigger * geren * Update screenshots Co-authored-by: nstepien * add workflow_dispatch there * Remove the color test * Manually delete screenshots for now * Remove directory before generating screenshots * rename screenshots * Fix command * Update screenshots Co-authored-by: amanmahajan7 * Revert name * Update screenshots Co-authored-by: amanmahajan7 * Update .github/workflows/update-screenshots.yml Co-authored-by: Nicolas Stepien <[email protected]> * fix viewport * Remove `--set-upstream` * Update screenshots Co-authored-by: amanmahajan7 * Update test/visual/basicGrid.test.tsx Co-authored-by: Nicolas Stepien <[email protected]> * Try gh cli * Revert "Try gh cli" This reverts commit 6928269. * try `gh pr edit` * Remove invalid token * Add env * Update screenshots Co-authored-by: amanmahajan7 * only remove the label if it's a pr build * nit --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Nicolas Stepien <[email protected]> Co-authored-by: Nicolas Stepien <[email protected]>
https://vitest.dev/guide/browser/visual-regression-testing.html#visual-regression-testing
This PR sets up VRT. We can use
Update Screenshotslabel to update screenshots when needed